package com.retail.xiaocui.server.service;

import java.util.List;

import com.retail.common.core.domain.Result;
import com.retail.xiaocui.common.domain.WarehouseSku;
import com.retail.xiaocui.common.domain.req.OrderReq;

/**
 * 商品库存Service接口
 *
 * @author retail
 * @date 2024-03-10
 */
public interface WarehouseSkuService
{
    /**
     * 查询商品库存
     *
     * @param warehouseSkuId 商品库存主键
     * @return 商品库存
     */
    public WarehouseSku selectWarehouseSkuByWarehouseSkuId(Integer warehouseSkuId);

    /**
     * 查询商品库存列表
     *
     * @param warehouseSku 商品库存
     * @return 商品库存集合
     */
    public List<WarehouseSku> selectWarehouseSkuList(WarehouseSku warehouseSku);

    /**
     * 新增商品库存
     *
     * @param warehouseSku 商品库存
     * @return 结果
     */
    public int insertWarehouseSku(WarehouseSku warehouseSku);

    /**
     * 修改商品库存
     *
     * @param warehouseSku 商品库存
     * @return 结果
     */
    public int updateWarehouseSku(WarehouseSku warehouseSku);

    /**
     * 批量删除商品库存
     *
     * @param warehouseSkuIds 需要删除的商品库存主键集合
     * @return 结果
     */
    public int deleteWarehouseSkuByWarehouseSkuIds(Integer[] warehouseSkuIds);

    /**
     * 删除商品库存信息
     *
     * @param warehouseSkuId 商品库存主键
     * @return 结果
     */
    public int deleteWarehouseSkuByWarehouseSkuId(Integer warehouseSkuId);

    Result orderRequest(OrderReq orderReq);
}
